import axios from 'axios'


const request = axios.create({
    baseURL:'http://zsj.com:8081',
    timeout:5000
})

request.interceptors.response.use(({data})=>{
    const {ok,msg} = data
    if(ok===-1){
        alert(msg)
        return new Promise(()=>{})
    }
    return data
})

export default request